<template>
	<view class="content">
		<view class="content-left" :style="{gap:size.gap + 'rpx'}">
			<view class="content-left-img" :style="{width:size.picWidth + 'rpx',height:size.picHeight + 'rpx',backgroundColor:workItem.bgColor}">
				<image :src="workItem.img" mode="aspectFit" :style="{width:size.imgWidth + 'rpx',height:size.imgHeight + 'rpx'}"></image>
			</view>
			<view class="content-left-text">
				<view class="content-left-text-top"><text>{{workItem.title}}</text></view>
				<view class="content-left-text-bottom"><text>{{workItem.form}}</text></view>
			</view>
		</view>
		<view class="content-right">
			<text>{{workItem.time}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"workList",
		data() {
			return {
				
			};
		},
		props:['workItem','size']
	}
</script>

<style lang="scss" scoped>
.content{
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 80rpx;

	.content-left{
		display: flex;
		align-items: center;
		
		.content-left-img{
			display: flex;
			justify-content: center;
			align-items: center;
			border-radius: 50%;
		}
	
		.content-left-text{
			.content-left-text-top{
				font-size: 28rpx;
				font-weight: 600;
			}
			.content-left-text-bottom{
				font-size: 20rpx;
				font-weight: 400;
				margin-top: 20rpx;
				color: #6e7781;
			}
		}
	}
	
	.content-right{
		text{
			font-size: 20rpx;
			font-weight: 400;
			color: #6e7781;
		}
	}
	

}

</style>